import request from '@/utils/request';

export async function queryRule(params) {
    return request('/activity/activity/page', {
        params,
    });
}
export async function queryStore(params) {
  return request('store/store/list', {
    params,
  });
}
export async function queryGiveaway(params) {
  return request('activity/giveaway/list', {
    params,
  });
}

export async function addActivity(params) {
  return request('activity/activity', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function updateActivity(params) {
  return request('activity/activity/update', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
